package com.zh.system.domain.dto;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zh.web.base.BaseDto;
import com.zh.web.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel("新增消息模板dto")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AddMsgTemplateDto extends BaseDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "模板名称", required = true)
    @NotNull
    private String name;
    @ApiModelProperty(value = "模板类型", required = true)
    @NotNull
    private String type;
    @ApiModelProperty("模板来源")
    private String source;
    @ApiModelProperty(value = "模板体", required = true)
    @NotEmpty
    private String template;
    @ApiModelProperty(value = "模板替换关键词（体）数组", required = true)
    @NotEmpty
    private String[] keywords;
}